package com.jeff.tianti.org.service;

import com.jeff.tianti.common.entity.PageModel;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.org.dao.VolunteerDao;
import com.jeff.tianti.org.dto.VolunteerQueryDTO;
import com.jeff.tianti.org.entity.Volunteer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author guost
 * @Date 2019/2/9 17:51
 **/
@Service
public class VolunteerService extends CommonService<Volunteer,String> {
    @Autowired
    private VolunteerDao volunteerDao;

    @Autowired
    public void setVolunteerDao(VolunteerDao volunteerDao) {
        super.setCommonDao(volunteerDao);
    }

    /**
     * 根据病人信息查询分页信息
     * @param volunteerQueryDTO
     * @return
     */
    public PageModel<Volunteer> queryVolunteerPage(VolunteerQueryDTO volunteerQueryDTO){
        return this.volunteerDao.queryVolunteerPage(volunteerQueryDTO);
    }
}
